package com.p2p.base.service;




public interface SequenceService {

	//强行开启一个新的事务
	public abstract Long getNextBySequenceName(String sequenceName);
	
	/**
	 * 如果超过maxId，则重置为1
	 * 
	 * @param sequenceName
	 * @param maxId
	 * @return
	 */
	public Long getNextBySequenceName(String sequenceName,Long maxId);

	public Long getBorrowerBySequenceName(String name);

}